<template>
  <div>登录
    <div>
      <router-link to="/Reg">去注册</router-link>
      <button @click="toReg">点我去注册</button>
    </div>
  </div>
</template>

<script>
export default {
  
  methods:{
    toReg(){
      this.$router.push("/Reg/123?name=daiYuLan&sex='nv'&age='3'")
      
      console.log(this.$route.router);
    }
  }
}
</script>

<style>

</style>